package com.dhcc.bpm.modules.safe.vo;

import com.dhcc.bpm.modules.safe.entity.Flow;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @ClassName FlowVO
 * @Description 流量管理表视图实体类
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "FlowVO对象", description = "流量管理表")
public class FlowVO extends Flow {
	private static final long serialVersionUID = 1L;
	/**
	 * 接口名称
	 */
	private String apiName;
	/**
	 * 接口编码
	 */
	private String apiCode;
	/**
	 * 接口版本
	 */
	private String apiVersion;
	/**
	 * 基础产品名称
	 */
	private String productName;
	/**
	 * 基础产品名称
	 */
	private String productNum;
	/**
	 * 应用名称
	 */
	private String appName;
	/**
	 * 机构名称
	 */
	private String orgaName;
	/**
	 * 产品ID
	 */
	private String productId;
	/**
	 * 网关名称
	 */
	private String gatewayName;

	private String applyFlow;
	/**
	 * 管理员批准流量
	 */
	private String approvalFlow;
	/**
	 * 流控周期
	 */
	private String flowControlCycleApply;
	/**
	 * 访问策略
	 */
	private String accessPolicy;
	/**
	 * 访问次数
	 */
	private Long accessNum;
	/**
	 * 并发数
	 */

	@JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
	@ApiModelProperty(value = "并发数")
	private Long applyQps;
	/**
	 * 审批并发数
	 */

	@JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
	@ApiModelProperty(value = "审批并发数")
	private Long approvalQps;
	/**
	 * 开始时间
	 */
	@ApiModelProperty(value = "开始时间")
	private String startDate;

	/**
	 * 结束时间
	 */
	@ApiModelProperty(value = "结束时间")
	private String endDate;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value = "创建人")
	private String account;

}
